package cn.wjzhang.middle.modules.global.beans.response.weather.data;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * ========================
 * 功能描述
 *
 * @author wjzhang
 * @version v1.0
 * ========================
 * @date 2023/7/3 12:31
 */
@Data
public class WeatherData {

    private Location location;

    private List<Daily> daily;
    private LocalDateTime lastUpdate;

    @Data
    private class Location {
        private String id;
        private String country;
        private String path;
        private String timezone;
        private String timezoneOffset;
    }

    /**
     *
     */
    @Data
    private class Daily {
        private String date;
        private String textDay;
        private String codeDay;
        private String textNight;
        private String codeNight;
        private String high;
        private String low;
        private String rainfall;
        private String precip;
        private String windDirection;
        private String windDirectionDegree;
        private String windSpeed;
        private String windScale;
        private String humidity;
    }

}
